#ifndef _WIFI_APSTATION_H_
#define _WIFI_APSTATION_H_
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "nvs_flash.h"
#include "nvs.h"

#include "freertos/event_groups.h"
#include "esp_wifi.h"
#include "esp_event.h"
#include "esp_log.h"
#include "WiFiIno_flash.h"
#include "Aws_mqtt_connect.h"







extern wifi_init_config_t cfg;
extern wifi_config_t wifi_sta_config;
extern wifi_config_t wifi_ap_config;


//WIFI STA初始化
esp_err_t wifi_apsta_init();
esp_err_t wifi_ap_init();

extern bool apstion_ap_fail_retry;

extern char ip_str[]; // 定义足够大的字符数组来存储IP地址字符串








#endif